home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol C-14 / Vol C-14.iso / games / peanut.swf / scripts / DefineSprite_94 / frame_5 / DoAction.as
Text File  |  2012-04-23  |  262b  |  12 lines

  1. set("../:puckX",_X);
  2. if("0" < speed and eval("../:puckX") + speed < "580" or speed < "0" and - "30" < eval("../:puckX") + speed)
  3. {
  4.    set("../:puckX",eval("../:puckX") + speed);
  5.    _X = eval("../:puckX");
  6.    prevFrame();
  7. }
  8. else
  9. {
  10.    gotoAndPlay(1);
  11. }
  12.